New legislation creating collective bargaining rights for gig-economy workers is poised to be introduced in New York State in the coming weeks, according to the president of the Transport Workers Union. If passed, the proposal would represent the fulfillment of a long-sought goal for companies like Uber Technologies Inc. and Lyft Inc.: a compromise that stops short of making workers into full employees.